package com.hxzy.service;

import com.hxzy.pojo.Emp;
import com.hxzy.pojo.PageBean;

import java.time.LocalDate;
import java.util.List;

/**
 * @author wzm
 * @create 2024-03-04 15:32
 * project_name:JavaWeb2401
 * @Description
 */
public interface EmpService {
    //手动分页
    PageBean page(Integer page, Integer pageSize);

    //pageHelper分页
    PageBean pageByHelper(Integer page, Integer pageSize, String name, Short gender, LocalDate begin,LocalDate end);

    void deleteByIds(List<Integer> ids);

    void add(Emp emp);

    Emp findById(Integer id);

    void update(Emp emp);

    Emp login(Emp emp);
}
